package com.syx.system.Model.question.VO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class QuestionDetailVO {

    //前端拿到questionId进行编辑
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;

    @NotBlank(message = "标题不能为空")
    private String title;

    //难度
    @NotBlank(message = "难度不能为空")
    private Integer difficulty;

    @NotBlank(message = "时间限制不能为空")
    private Integer timeLimit;

    @NotBlank(message = "空间限制不能为空")
    private Integer spaceLimit;

    @NotBlank(message = "内容不能为空")
    private String content;

    @NotBlank(message = "测试用例不能为空")
    private String questionCase;

    @NotBlank(message = "默认代码块不能为空")
    private String defaultCode;

    @NotBlank(message = "main函数不能为空")
    private String mainFuc;


}
